package homework.test2;

import java.io.File;

/*
使用file类在指定路径下创建文件夹
 */
public class Demo2 {
    public static void main(String[] args) {
        File file1 = new File("Day11\\src\\homework\\test");
        boolean flag1 = file1.mkdir();
        System.out.println(flag1);

        File file2 = new File("Day11\\src\\homework\\test1\\test2\\test3");
        boolean flag2 = file2.mkdirs();
        System.out.println(flag2);
    }
}
